package com.baizhi.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;
import java.util.Date;

public class Student implements Serializable {
    @JsonProperty("id")
    private Integer studentId;

    private String studentName;
    private Boolean sex;
    private Double score;

    private Date birthday;

    public Student() {
    }

    public Student(Integer studentId, String studentName, Boolean sex, Double score, Date birthday) {
        this.studentId = studentId;
        this.studentName = studentName;
        this.sex = sex;
        this.score = score;
        this.birthday = birthday;
    }

    public Integer getStudentId() {
        return studentId;
    }

    public void setStudentId(Integer studentId) {
        this.studentId = studentId;
    }

    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }

    public Boolean getSex() {
        return sex;
    }

    public void setSex(Boolean sex) {
        this.sex = sex;
    }

    public Double getScore() {
        return score;
    }

    public void setScore(Double score) {
        this.score = score;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    @Override
    public String toString() {
        return "Student{" +
                "studentId=" + studentId +
                ", studentName='" + studentName + '\'' +
                ", sex=" + sex +
                ", score=" + score +
                ", brithday=" + birthday +
                '}';
    }
}
